<%@ page import="com.lu.entity.NewsUsers" %>
<%--
  Created by IntelliJ IDEA.
  User: l
  Date: 2022/5/31
  Time: 17:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%
    NewsUsers currentUser = (NewsUsers) session.getAttribute("currentUser");
    if (currentUser == null) {
        response.sendRedirect("index.jsp");
        return;
    }
    /*Cookie[] cookies = request.getCookies();
    if(cookies==null){
        response.sendRedirect("index.jsp");
        return;
    }
    String uname=null;
    for (Cookie cookie : cookies) {
        if(cookie.getName().equals("currentUname")){
           uname =  cookie.getValue();
           break;
        }
    }
    if(uname==null){
        response.sendRedirect("index.jsp");
    }*/
%>

